import os
from typing import Optional

import app.project.doc_to_recommendation.llm.model
from app.project.doc_to_recommendation.llm.register.llm_register import LLM_REGISTER


def get_model(model_name):
    return LLM_REGISTER.get_model(model_name)

def init_model(model_name: str, config: dict):
    model = get_model(model_name)
    return model(config=config)
